@php
    $routeCA = explode('@',class_basename(app('request')->route()->getAction()['controller']));
    $controller = $routeCA[0];
    $action_name = $routeCA[1];
@endphp
<div id="navtab">
    <a href="{{route('home')}}" class="{{ $controller == 'ReserveController' && in_array($action_name, ['index', 'edit', 'xd']) ? 'active' : '' }}">
        <i class="iconfont icon-jiudianyuding"></i>
        <p>预订</p>
    </a>
    <a href="{{route('reserve.list')}}" class="{{ $controller == 'ReserveController' && in_array($action_name, ['list']) ? 'active' : '' }}">
        <i class="iconfont icon-clock"></i>
        <p>我的预订</p>
    </a>
    <a href="{{route('logout')}}">
        <i class="iconfont icon-tuichu"></i>
        <p>退出</p>
    </a>
</div>